﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace gvPoco.ChartOptions
{
    /// <summary>
    /// An object with members to configure various aspects of the legend.
    /// </summary>
    public class Legend
    {

        /// <summary>
        /// Position of the legend. Can be one of the following:
        // 'right' - To the right of the chart.
        // 'left' - To the left of the chart.
        // 'top' - Above the chart.
        // 'bottom' - Below the chart.
        // 'none' - No legend is displayed.
        /// </summary>
        public string position { get; set; }

        /// <summary>
        /// Alignment of the legend. Can be one of the following:
        // 'start' - Aligned to the start of the area allocated for the legend.
        // 'center' - Centered in the area allocated for the legend.
        // 'end' - Aligned to the end of the area allocated for the legend.
        //
        // Start, center, and end are relative to the style -- vertical or horizontal -- 
        // of the legend. For example, in a 'right' legend, 'start' and 'end' are at 
        // the top and bottom, respectively; for a 'top' legend, 'start' and 'end' would be 
        // at the left and right of the area, respectively.
        //
        // The default value depends on the legend's position. For 'bottom' legends, the default 
        // is 'center'; other legends default to 'start'.
        /// </summary>
        public string alignment { get; set; }
        

        public Legend()
        {
            // Set to null for default initialization on the client-side
            position = "right";
            alignment = null;
        }


    }
}